{include file="header.html"}
<script type="text/javascript" src="index.php?act=jslang"></script>
<script type="text/javascript">

    $(function(){
        $('#monitor_define_form').validate({
            errorPlacement: function(error, element){
                $(element).next('.field_notice').hide();
                $(element).after(error);
            },

            onkeyup    : false,
            rules : {
                Name : {
                    required: true
                },
                Note : {
                    required: true
                },



            },
            messages : {
                Name: {
                    required: ''
                },
                Note : {
                    required: true
                },


            }
        });
    });

</script>
<div id="rightTop">
    <p>{$lang.monitor_define}</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=monitor_define">{$lang.manage}</a></li>
        <!-- {if $monitor_define.Id} -->
        <li><a class="btn1" href="index.php?app=monitor_define&amp;act=add">{$lang.add}</a></li>
        <!-- {else} -->
        <li><span>{$lang.add}</span></li>
        <!-- {/if} -->
    </ul>
</div>
<div class="info">
    <form method="post" enctype="multipart/form-data" id="monitor_define_form">
        <table class="infoTable">

            <tr>
                <th class="paddingT15">{$lang.Name}:</th>
                <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" name="Name" type="text" id="Name" value="{$monitor_define.Name|escape}" /></td>
            </tr>
            <tr>
                <th class="paddingT15">{$lang.Note}:</th>
                <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" name="Note" type="text" id="Note" value="{$monitor_define.Note|escape}" /></td>
            </tr>
            <tr>
                <th class="paddingT15">{$lang.ShowNav}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input name="ShowNav" type="radio" value="1" {if $monitor_define.ShowNav == 1}checked="checked"{/if} />
                    显示</label>
                    <input type="radio" name="ShowNav" value="0" {if $monitor_define.ShowNav == 0}checked="checked"{/if} />
                    隐藏</label>
                </td>
            </tr>

            <tr>
                <th class="paddingT15">{$lang.Status}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input name="Status" type="radio" value="1" {if $monitor_define.Status == 1}checked="checked"{/if} />
                    启用</label>
                    <input type="radio" name="Status" value="0" {if $monitor_define.Status == 0}checked="checked"{/if} />
                    停用</label>
                </td>
            </tr>


            <tr>
                <th></th>
                <td class="ptb20"><input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                    <input class="formbtn" type="reset" name="Reset" value="{$lang.reset}" /></td>
            </tr>
        </table>
    </form>

</div>
<!--{if $Id}-->
{include file="monitor_define_detail.index.html"}
<!--{/if}-->
{include file="footer.html"}